package com.sorng.nio;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {

    public static Properties getProperties(Class target,String name) throws IOException {
        InputStream asStream = target.getResourceAsStream(name);
        Properties properties = new Properties();
        properties.load(asStream);
        return properties;
    }
}
